/**
 * 加解密标志
 */

    var Decrypt_flag=false;//是否解密
    var postEnc = true;//是否进行加解密
    var Encry_key ="abcdefgabcdefg12";
    var Decrypt_key = "hgandin12hgandin";//解密key
  //加密
    function Encrypt(word, key){
    	key = CryptoJS.enc.Utf8.parse(key);
    	var srcs = CryptoJS.enc.Utf8.parse(word);
    	var encrypted = CryptoJS.AES.encrypt(srcs, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
    	return encrypted.toString();
    };
    // 解密
    function Decrypt(word,key){
    	key  = CryptoJS.enc.Utf8.parse(key);
    	var decrypt = CryptoJS.AES.decrypt(word, key, {mode:CryptoJS.mode.ECB,padding: CryptoJS.pad.Pkcs7});
    	return CryptoJS.enc.Utf8.stringify(decrypt).toString();
    };